package com.desksoft.ecommerce.entity.logistics.dto;

import java.util.ArrayList;
import java.util.List;

public class VendoritempicExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public VendoritempicExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSeqnoIsNull() {
            addCriterion("SeqNo is null");
            return (Criteria) this;
        }

        public Criteria andSeqnoIsNotNull() {
            addCriterion("SeqNo is not null");
            return (Criteria) this;
        }

        public Criteria andSeqnoEqualTo(Integer value) {
            addCriterion("SeqNo =", value, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoNotEqualTo(Integer value) {
            addCriterion("SeqNo <>", value, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoGreaterThan(Integer value) {
            addCriterion("SeqNo >", value, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoGreaterThanOrEqualTo(Integer value) {
            addCriterion("SeqNo >=", value, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoLessThan(Integer value) {
            addCriterion("SeqNo <", value, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoLessThanOrEqualTo(Integer value) {
            addCriterion("SeqNo <=", value, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoIn(List<Integer> values) {
            addCriterion("SeqNo in", values, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoNotIn(List<Integer> values) {
            addCriterion("SeqNo not in", values, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoBetween(Integer value1, Integer value2) {
            addCriterion("SeqNo between", value1, value2, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoNotBetween(Integer value1, Integer value2) {
            addCriterion("SeqNo not between", value1, value2, "seqno");
            return (Criteria) this;
        }

        public Criteria andVendorcodeIsNull() {
            addCriterion("VendorCode is null");
            return (Criteria) this;
        }

        public Criteria andVendorcodeIsNotNull() {
            addCriterion("VendorCode is not null");
            return (Criteria) this;
        }

        public Criteria andVendorcodeEqualTo(String value) {
            addCriterion("VendorCode =", value, "vendorcode");
            return (Criteria) this;
        }

        public Criteria andVendorcodeNotEqualTo(String value) {
            addCriterion("VendorCode <>", value, "vendorcode");
            return (Criteria) this;
        }

        public Criteria andVendorcodeGreaterThan(String value) {
            addCriterion("VendorCode >", value, "vendorcode");
            return (Criteria) this;
        }

        public Criteria andVendorcodeGreaterThanOrEqualTo(String value) {
            addCriterion("VendorCode >=", value, "vendorcode");
            return (Criteria) this;
        }

        public Criteria andVendorcodeLessThan(String value) {
            addCriterion("VendorCode <", value, "vendorcode");
            return (Criteria) this;
        }

        public Criteria andVendorcodeLessThanOrEqualTo(String value) {
            addCriterion("VendorCode <=", value, "vendorcode");
            return (Criteria) this;
        }

        public Criteria andVendorcodeLike(String value) {
            addCriterion("VendorCode like", value, "vendorcode");
            return (Criteria) this;
        }

        public Criteria andVendorcodeNotLike(String value) {
            addCriterion("VendorCode not like", value, "vendorcode");
            return (Criteria) this;
        }

        public Criteria andVendorcodeIn(List<String> values) {
            addCriterion("VendorCode in", values, "vendorcode");
            return (Criteria) this;
        }

        public Criteria andVendorcodeNotIn(List<String> values) {
            addCriterion("VendorCode not in", values, "vendorcode");
            return (Criteria) this;
        }

        public Criteria andVendorcodeBetween(String value1, String value2) {
            addCriterion("VendorCode between", value1, value2, "vendorcode");
            return (Criteria) this;
        }

        public Criteria andVendorcodeNotBetween(String value1, String value2) {
            addCriterion("VendorCode not between", value1, value2, "vendorcode");
            return (Criteria) this;
        }

        public Criteria andVendoritemIsNull() {
            addCriterion("VendorItem is null");
            return (Criteria) this;
        }

        public Criteria andVendoritemIsNotNull() {
            addCriterion("VendorItem is not null");
            return (Criteria) this;
        }

        public Criteria andVendoritemEqualTo(String value) {
            addCriterion("VendorItem =", value, "vendoritem");
            return (Criteria) this;
        }

        public Criteria andVendoritemNotEqualTo(String value) {
            addCriterion("VendorItem <>", value, "vendoritem");
            return (Criteria) this;
        }

        public Criteria andVendoritemGreaterThan(String value) {
            addCriterion("VendorItem >", value, "vendoritem");
            return (Criteria) this;
        }

        public Criteria andVendoritemGreaterThanOrEqualTo(String value) {
            addCriterion("VendorItem >=", value, "vendoritem");
            return (Criteria) this;
        }

        public Criteria andVendoritemLessThan(String value) {
            addCriterion("VendorItem <", value, "vendoritem");
            return (Criteria) this;
        }

        public Criteria andVendoritemLessThanOrEqualTo(String value) {
            addCriterion("VendorItem <=", value, "vendoritem");
            return (Criteria) this;
        }

        public Criteria andVendoritemLike(String value) {
            addCriterion("VendorItem like", value, "vendoritem");
            return (Criteria) this;
        }

        public Criteria andVendoritemNotLike(String value) {
            addCriterion("VendorItem not like", value, "vendoritem");
            return (Criteria) this;
        }

        public Criteria andVendoritemIn(List<String> values) {
            addCriterion("VendorItem in", values, "vendoritem");
            return (Criteria) this;
        }

        public Criteria andVendoritemNotIn(List<String> values) {
            addCriterion("VendorItem not in", values, "vendoritem");
            return (Criteria) this;
        }

        public Criteria andVendoritemBetween(String value1, String value2) {
            addCriterion("VendorItem between", value1, value2, "vendoritem");
            return (Criteria) this;
        }

        public Criteria andVendoritemNotBetween(String value1, String value2) {
            addCriterion("VendorItem not between", value1, value2, "vendoritem");
            return (Criteria) this;
        }

        public Criteria andFilenametIsNull() {
            addCriterion("FileNameT is null");
            return (Criteria) this;
        }

        public Criteria andFilenametIsNotNull() {
            addCriterion("FileNameT is not null");
            return (Criteria) this;
        }

        public Criteria andFilenametEqualTo(String value) {
            addCriterion("FileNameT =", value, "filenamet");
            return (Criteria) this;
        }

        public Criteria andFilenametNotEqualTo(String value) {
            addCriterion("FileNameT <>", value, "filenamet");
            return (Criteria) this;
        }

        public Criteria andFilenametGreaterThan(String value) {
            addCriterion("FileNameT >", value, "filenamet");
            return (Criteria) this;
        }

        public Criteria andFilenametGreaterThanOrEqualTo(String value) {
            addCriterion("FileNameT >=", value, "filenamet");
            return (Criteria) this;
        }

        public Criteria andFilenametLessThan(String value) {
            addCriterion("FileNameT <", value, "filenamet");
            return (Criteria) this;
        }

        public Criteria andFilenametLessThanOrEqualTo(String value) {
            addCriterion("FileNameT <=", value, "filenamet");
            return (Criteria) this;
        }

        public Criteria andFilenametLike(String value) {
            addCriterion("FileNameT like", value, "filenamet");
            return (Criteria) this;
        }

        public Criteria andFilenametNotLike(String value) {
            addCriterion("FileNameT not like", value, "filenamet");
            return (Criteria) this;
        }

        public Criteria andFilenametIn(List<String> values) {
            addCriterion("FileNameT in", values, "filenamet");
            return (Criteria) this;
        }

        public Criteria andFilenametNotIn(List<String> values) {
            addCriterion("FileNameT not in", values, "filenamet");
            return (Criteria) this;
        }

        public Criteria andFilenametBetween(String value1, String value2) {
            addCriterion("FileNameT between", value1, value2, "filenamet");
            return (Criteria) this;
        }

        public Criteria andFilenametNotBetween(String value1, String value2) {
            addCriterion("FileNameT not between", value1, value2, "filenamet");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}